Using solr in. net to improve search efficiency (getting started). netsolrOverview:
When developing a website, you often need to query certain content. In this case, if the search function is based on the database query, the efficiency is often very
Overview:There is often a need to query for certain content when developing a website. If you do a search based on a database query, the efficiency is often very bad because you want to do fuzzy matching on multiple fields. In this case, SOLR can be
Solr learning Summary (4) Solr query parameters, solr Parameters
It will not be involved today. net and database operations, mainly to summarize the Solr query parameters, or that sentence, only the basic content and query syntax of solr are clearly
1. Parameters of the Corequeryparam query
1) Q: query string, required.
2) Q.op: Overrides the Schema.xml defaultoperator (with "and" or "or" in the case of a space), which is usually specified by default.
3) DF: The default query field, typically
Query Parameters
Frequently used:
Q-query string, required.
FL-specify the content of the returned fields, which are separated by commas (,) or spaces.
Start-return the offset position of the first record in the complete found result.
Preface
Full-text search in SQL Fuzzy query, the biggest difference lies in① the former can be a key string to query the first flexible participle, and then to match ,② the latter will only be directly rigid matching .③ Many sites have site search,
Configurations in solrj:
Two highlighted settings
// Solrparams. sethighlight (true );
Solrparams. setparam ("Hl", "true"); // highlighting
Set the highlighted field:
// Set the highlighted fields. They can be separated by spaces or
Reprint Please specify source: Jiq's technical BlogHBase Features:Recently in learning HBase. HBase is indexed based on row health, and queries are fast and in real time.However, HBase is queried based on fields other than row health. Then it can
Reprint Please specify source: Jiq's technical BlogHBase Features:Recently in the learning Hbase,hbase based on the row Jian is indexed, the query speed will be very fast, completely real-time.But if HBase is to query based on fields other than row
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.